﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataAccess.Models
{
    /// <summary>
    /// 权限
    /// </summary>
    public class Permission
    {
        [XYD.Framework.Key]
        [XYD.Framework.Identity]
        public int id { get; set; }
        public int parent_id { get; set; }
        public string name { get; set; }
        public string menu_name { get; set; }
        public string type { get; set; }
        public string action { get; set; }
        public string controller { get; set; }
        public string target { get; set; }
        public string url { get; set; }
        public int sort { get; set; }
        public string is_hidden { get; set; }
        public string remark { get; set; }
        public string icon { get; set; }
        [XYD.Framework.Write(false)]
        public List<Permission> chilids { get; set; }
    }
}
